//
//  NSObject+YJEmpty.h
//  Rail
//
//  Created by hychen on 2018/2/26.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSObject (YJEmpty)
//判断对象为非空
- (BOOL)objectIsNotEmpty;
//强制转换成字符串
- (NSString *)forceToNSString;
//强制转换成数组
- (NSArray *)forceToNSArray;
//强制转换成字典
- (NSDictionary *)forceToNSDictionary;
//强制转换成数字对象
- (NSNumber *)forceToNSNumber;
//强制转换成NSSet
- (NSSet *)forceToNSSet;

//安全的objectForKey
- (id)objectForKeySafe:(id)key;
//安全的objectAtIndex
- (id)objectAtIndexSafe:(NSInteger)i;
@end
